//********************************************************
// Info of Rebel
//created by tuan anh,31/12/2011
//********************************************************
#include "Object.h"
#include "QuadTree.h"

const int MAX_SIZE			= 25;

class CRebel : public Object
{
public:
	//constructor
	CRebel();
	CRebel(LPD3DXSPRITE SurpriteHandler, float Scaling, CQuadTree*);
	~CRebel();
	//Process collision
	CQuadTree* m_Quadtree;
	//declare all the variable
	int m_nrebIndex;			//current number of frame
	int timeBetweenUpdated;

	float m_fframeWidth;			//size of frame
	float m_fframeHeight;					//
	float m_fscaling;			//

	//function

	void loadSprite(LPD3DXSPRITE);
	void update(int DeltaTime, int moveCame);
	void render();
	void reset();
	void setRect();

	void next();
	//Action of rebel
	void move();
	//0
	void suprise();
	void talk();
	void sitDown();
	//1
	void crawl();
	void fly();
	//2
	void reparing();
	void throw1();
	void throw2();
	void talkFone();
	//3
	void stand();
	void jump();
	void fear();

	//
	void die();
	void die1();
	void die2();
	void die3();
	//
	void release();
};